﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Entitys.Messages
{
    /// <summary>
    /// 进程间状态消息
    /// </summary>
    public class ProcessStatusMsg
    {
        public ProcessStatus ProcessStatus { get; set; }

        public ProcessStatusMsg()
        {

        }

        public ProcessStatusMsg(ProcessStatus processStatus)
        {
            ProcessStatus=processStatus;
        }

        public static implicit operator ProcessStatusMsg(ProcessStatus processStatus)
        {
            return new ProcessStatusMsg(processStatus);
        }
    }

    public enum ProcessStatus
    {
        /// <summary>
        /// 尚未启动
        /// </summary>
        NotStart,

        /// <summary>
        /// 运行中
        /// </summary>
        Running,

        /// <summary>
        /// 转后台
        /// </summary>
        Background,

        /// <summary>
        /// 关闭状态
        /// </summary>
        Closed,
    }
}
